﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;

namespace BCDto.OA.WorkflowTemplate.WorkflowTemplateStepBaseConfig
{
	/// <summary>
	/// 工作流模板步骤配置
	/// </summary>
	public class WorkflowTemplateStepBaseConfigRequestDto
	{
		/// <summary>
		/// 工作流模板Code
		/// </summary>		
		[Display(Name = "工作流模板Code")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(50, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string TemplateCode { get; set; }
		/// <summary>
		/// 工作流模板名称
		/// </summary>		
		[Display(Name = "工作流模板名称")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(100, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string TemplateName { get; set; }
		/// <summary>
		/// 步骤Code
		/// </summary>		
		[Display(Name = "步骤Code")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(50, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string TemplateStepCode { get; set; }
		/// <summary>
		/// 步骤Code
		/// </summary>		
		[Display(Name = "步骤Code")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(50, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string StepCode { get; set; }
		/// <summary>
		/// 步骤名称
		/// </summary>		
		[Display(Name = "步骤名称")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(50, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string StepName { get; set; }
		/// <summary>
		/// 通知策略
		/// </summary>		
		[Display(Name = "通知策略")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(50, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string NotificationPolicy { get; set; }
		/// <summary>
		/// 审核策略
		/// </summary>		
		[Display(Name = "审核策略")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(50, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string ValidationPolicy { get; set; }
		/// <summary>
		/// 再次审核
		/// </summary>		
		[Display(Name = "再次审核")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(50, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string OnceAgainValidation { get; set; }
		/// <summary>
		/// 允许加签
		/// </summary>		
		[Display(Name = "允许加签")]
		[Required(ErrorMessage = "{0} 不应为空")]
		public bool AllowAdditionalValidationPerson { get; set; }
		/// <summary>
		/// 允许批量审批
		/// </summary>		
		[Display(Name = "允许批量审批")]
		[Required(ErrorMessage = "{0} 不应为空")]
		public bool AllowbatchChecking { get; set; }
		/// <summary>
		/// 无对应处理人
		/// </summary>		
		[Display(Name = "无对应处理人")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(50, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string NoneHandlePerson { get; set; }
	}
}

